﻿@model Enity101.Models.UpdatePostViewModel
@{
    //Layout = null;
}

<h1>@Model.Msg</h1>


@using (Html.BeginForm())
{
    @Html.HiddenFor(m => m.Post.PostId)
    <div>
        @Html.LabelFor(m => m.Post.Title)
        @Html.EditorFor(m => m.Post.Title)
        @Html.ValidationMessageFor(m => m.Post.Title)
    </div>
    <div>
        @Html.LabelFor(m => m.Post.Content)
        @Html.EditorFor(m => m.Post.Content)
    </div>
    <div>
        <button type="submit">Update</button>
    </div>

}